package com.atguigu.lease.web.app.service.impl;

import com.atguigu.lease.model.entity.*;

import com.atguigu.lease.web.app.mapper.*;

import com.atguigu.lease.web.app.service.RoomInfoService;

import com.atguigu.lease.web.app.vo.room.RoomDetailVo;
import com.atguigu.lease.web.app.vo.room.RoomItemVo;
import com.atguigu.lease.web.app.vo.room.RoomQueryVo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author LB
 * @description 针对表【room_info(房间信息表)】的数据库操作Service实现
 * @createDate 2025年11月13日18:31:15
 */
@Service
@Slf4j
public class RoomInfoServiceImpl extends ServiceImpl<RoomInfoMapper, RoomInfo>
        implements RoomInfoService {
    @Autowired
    private RoomInfoMapper roomInfoMapper;


    @Override
    public void customList(IPage<RoomItemVo> page, RoomQueryVo vo) {
        roomInfoMapper.customList(page, vo);
    }

    @Override
    //未完成
    public RoomDetailVo customGetById(Long id) {
        RoomInfo roomInfo = super.getById(id);
        return null;
    }

    @Override
    public void customApartmentGetById(IPage<RoomItemVo> page, Long id) {
        roomInfoMapper.customApartmentGetById(page, id);
    }


}




